<template>
  <div id="app" v-cloak>
    <navBar v-if="$route.meta.nav"></navBar>
    <router-view></router-view>
  </div>
</template>

<script>
 
import navBar from "./components/commom";

export default {
  name: "App",
  components: {
    navBar
  },
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function() {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>
<style lang="less" scoped>
#app {
  height: 100%;
}
[v-cloak] {
  display: none;
}
</style>




